// 消息中心路由
import Layout from '@/layout/index';

export default [
  {
    path: '/oper',
    component: Layout,
    meta: { title: '运营工作台', icon: 'index', code: 'oper', redirect: true }
  },
  {
    path: 'patient',
    component: (resolve) => require(['@/views/oper/patient'], resolve),
    name: 'patient',
    meta: { title: '患者管理', icon: 'index', code: 'oper:patient' }
  },
  {
    path: 'transfer',
    component: (resolve) => require(['@/views/oper/patient/transferList.vue'], resolve),
    name: 'transfer',
    meta: { title: '转移患者', icon: 'index', code: 'oper:patient:transfer' }
  },
  {
    path: 'case',
    component: (resolve) => require(['@/views/oper/case'], resolve),
    name: 'case',
    meta: { title: '病例管理', icon: 'index', code: 'oper:case' }
  },
  {
    path: 'product',
    component: (resolve) => require(['@/views/oper/product'], resolve),
    name: 'product',
    meta: { title: '产品管理', icon: 'index', code: 'oper:product' }
  },
  {
    path: 'rules',
    component: (resolve) => require(['@/views/oper/productRules'], resolve),
    name: 'rules',
    meta: { title: '规则配置', icon: 'index', code: 'oper:product:rules' }
  },
  {
    path: 'pact',
    component: (resolve) => require(['@/views/oper/contractList'], resolve),
    name: 'rules',
    meta: { title: '合同管理', icon: 'index', code: 'oper:pact' }
  },
  {
    path: 'doctor',
    component: (resolve) => require(['@/views/operDocterAdmin'], resolve),
    name: 'doctor',
    meta: { title: '医生管理', icon: 'index', code: 'oper:doctor' }
  },
  {
    path: 'logistics',
    component: (resolve) => require(['@/views/oper/logistics'], resolve),
    name: 'logistics',
    meta: { title: '物流管理', icon: 'index', code: 'oper:logistics' }
  },
  {
    path: 'headgear',
    component: (resolve) => require(['@/views/oper/headgear'], resolve),
    name: 'headgear',
    meta: { title: '矫治器', icon: 'index', code: 'oper:logistics:headgear' }
  },
  {
    path: 'dentalCast',
    component: (resolve) => require(['@/views/oper/dentalCast'], resolve),
    name: 'dentalCast',
    meta: { title: '牙模', icon: 'index', code: 'oper:logistics:dentalCast' }
  },
  {
    path: 'material',
    component: (resolve) => require(['@/views/oper/material'], resolve),
    name: 'material',
    meta: { title: '物料', icon: 'index', code: 'oper:logistics:material' }
  },
  {
    path: 'meal',
    component: (resolve) => require(['@/views/meal/index.vue'], resolve),
    name: 'meal',
    meta: { title: '套餐管理', icon: 'index', code: 'oper:meal' }
  },
  {
    path: 'rules',
    component: (resolve) => require(['@/views/meal/index.vue'], resolve),
    name: 'rules',
    meta: { title: '配置规则', icon: 'index', code: 'oper:meal:rules' }
  },
  {
    path: 'supply',
    component: (resolve) => require(['@/views/oper/supply'], resolve),
    name: 'supply',
    meta: { title: '供应管理', icon: 'index', code: 'oper:supply' }
  },
  {
    path: 'output',
    component: (resolve) => require(['@/views/oper/supplyOutput'], resolve),
    name: 'output',
    meta: { title: '已出库', icon: 'index', code: 'oper:supply:output' }
  },
  {
    path: 'bloc',
    component: (resolve) => require(['@/views/oper/bloc/Bloc.vue'], resolve),
    name: 'Bloc',
    meta: { title: '集团管理', icon: 'index', code: 'oper:bloc' }
  },
  {
    path: 'details',
    component: (resolve) => require(['@/views/oper/bloc/Details.vue'], resolve),
    name: 'details',
    meta: { title: '集团详情', code: 'oper:bloc:details' }
  },
  {
    path: 'clinic',
    component: (resolve) => require(['@/views/oper/clinic/Clinic.vue'], resolve),
    name: 'Bloc',
    meta: { title: '诊所管理', icon: 'index', code: 'oper:clinic' }
  },
  {
    path: 'agent',
    component: (resolve) => require(['@/views/oper/agent/Agent.vue'], resolve),
    name: 'Bloc',
    meta: { title: '代理商', icon: 'index', code: 'oper:agent' }
  },
  // {
  //   path: 'agent',
  //   component: (resolve) => require(['@/views/oper/clinic/Clinic.vue'], resolve),
  //   name: 'Bloc',
  //   meta: { title: '代理商', icon: 'index', code: 'oper:agent' }
  // },
  {
    path: 'agentDetails',
    component: (resolve) => require(['@/views/oper/agent/Details.vue'], resolve),
    name: 'agentDetails',
    meta: { title: '代理商详情', code: 'oper:agent:details' }
  },
  {
    path: 'mealRule',
    component: (resolve) => require(['@/views/meal/rule/index.vue'], resolve),
    name: 'mealRule',
    meta: { title: '规则配置', icon: 'index', code: 'oper:meal:rules' }
  },
  {
    path: 'material',
    component: (resolve) => require(['@/views/material/index.vue'], resolve),
    name: 'material',
    meta: { title: '物料管理', icon: 'index', code: 'oper:material' }
  },
  {
    path: 'collocation',
    component: (resolve) => require(['@/views/material/collocation/index.vue'], resolve),
    name: 'collocation',
    meta: { title: '物料配置', icon: 'index', code: 'oper:material:set' }
  },
  {
    path: 'bill',
    component: (resolve) => require(['@/views/oper/bill/index.vue'], resolve),
    name: 'bill',
    meta: { title: '账单管理', code: 'oper:bill' }
  },
  {
    path: 'allBill',
    component: (resolve) => require(['@/views/oper/bill/AllBill.vue'], resolve),
    name: 'allBill',
    meta: { title: '全部订单', code: 'oper:bill:finish' }
  },
  {
    path: 'verifyBill',
    component: (resolve) => require(['@/views/oper/bill/VerifyBill.vue'], resolve),
    name: 'verifyBill',
    meta: { title: '待核对账单', code: 'oper:bill:verify' }
  },
  {
    path: 'billDetails',
    component: (resolve) => require(['@/views/oper/bill/Details.vue'], resolve),
    name: 'billDetails',
    meta: { title: '账单详情', code: 'oper:bill:details' }
  },
  {
    path: 'openInvoice',
    component: (resolve) => require(['@/views/oper/bill/Open.vue'], resolve),
    name: 'openInvoice',
    meta: { title: '待开票账单', code: 'oper:bill:open' }
  },
  {
    path: 'paymentInvoice',
    component: (resolve) => require(['@/views/oper/bill/PaymentBill.vue'], resolve),
    name: 'paymentInvoice',
    meta: { title: '待付款账单', code: 'oper:bill:payment' }
  },
  {
    path: 'invoice',
    component: (resolve) => require(['@/views/oper/bill/Invoice.vue'], resolve),
    name: 'invoice',
    meta: { title: '发票管理', code: 'oper:bill:invoice' }
  },
  {
    path: 'dataStatistics',
    component: (resolve) => require(['@/views/oper/data/index.vue'], resolve),
    name: 'dataStatistics',
    meta: { title: '数据统计', code: 'oper:dataStatistics' }
  }
];
